import request from '@/utils/request'

// 查询股指期货信息列表
export function queryStockIndexFutureInfoByPage(query) {
    return request({
        url: '/futures/queryStockIndexFutureInfoByPage.action',
        method: 'get',
        params: query
    })
}

// 新增股指期货信息
export function addStockIndexFutureInfo(data) {
    return request({
        url: '/futures/addStockIndexFutureInfo.action',
        method: 'post',
        data: data
    })
}

// 修改股指期货信息
export function updateStockIndexFutureInfo(data) {
    return request({
        url: '/futures/updateStockIndexFutureInfo.action',
        method: 'put',
        data: data
    })
}

// 删除股指期货信息
export function delStockIndexFutureInfo(data) {
    return request({
        url: '/futures/delStockIndexFutureInfo.action',
        method: 'delete',
        data: data
    })
}

// 查询股指期货行情列表
export function getStockIndexPriceList(query) {
    return request({
        url: '/futures/queryStockIndexPriceList.action',
        method: 'get',
        params: query
    })
}

// 查询股指期货行情曲线信息
export function getStockIndexPriceCurve(query) {
    return request({
        url: '/futures/queryStockIndexPriceCurve.action',
        method: 'get',
        params: query
    })
}


// 新增股指期货行情
export function addFuturePrice(data) {
    return request({
        url: '/futures/addFuturePrice.action',
        method: 'post',
        data: data
    })
}

// 修改股指期货行情
export function updateFuturePrice(data) {
    return request({
        url: '/futures/updateFuturePrice.action',
        method: 'put',
        data: data
    })
}

// 删除股指期货行情
export function deleteFuturePrice(data) {
    return request({
        url: '/futures/deleteFuturePrice.action',
        method: 'delete',
        data: data
    })
}